package com.adcc.ags.gms.gw.service;

import com.adcc.ags.gms.gw.entity.UserMonitor;
import com.adcc.ags.gms.gw.vo.UserMonitorVO;
import com.google.common.base.Optional;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户监控服务层
 */
@Transactional
public interface UserMonitorService {

    /**
     * 取得用户监控记录数
     * @return
     */
    public Optional<Long> getUserCount();

    /**
     * 保存用户监控记录
     * @param userMonitor
     * @return
     */
    public Optional<Boolean> saveUser(UserMonitor userMonitor);

    /**
     * 删除所有用户监控记录
     * @return
     */
    public Optional<Boolean> deleteALLUser();

    /**
     * 查找所有用户监控数据
     * @return
     */
    public Optional<List<UserMonitorVO>> findAllUserMonitor();

}
